import cytoscape from 'cytoscape'
import style from './style'
//  import cir from '../other/cytoscape-cose-bilkent.js'
import data from './data'
export default {
  init () {
    this.cy = cytoscape({
      container: document.getElementById('containerApp'),
      boxSelectionEnabled: false,
      autounselectify: true,
      wheelSensitivity: 0.1,
      style: style,
      layout: {
        name: 'concentric',
        concentric: function (node) {
          return node.degree()
        },
        levelWidth: function (nodes) {
          return 2
        }
      }
    })
    data.cy = this.cy
  },
  getcy () {
    return this.cy
  }
}
